package com.xmb.common.remote.service;

import com.xmb.common.remote.entity.XcxUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by lyndon on 2019/3/30.
 */
@FeignClient(value = "user-api")
public interface UserService {


    /**
     * 查询用户
     * @param xcxUser
     * @return  User
     * @creator xiaoxx
     * @createTime 2019/2/19
     */
    @RequestMapping(value="/selectOneUser" , method = RequestMethod.POST)
    XcxUser selectOneUser(@RequestBody XcxUser xcxUser);


    /**
     * 更新用户
     * @param xcxUser
     * @return  User
     * @creator xiaoxx
     * @createTime 2019/2/19
     */
    @RequestMapping(value="/updateUser" , method = RequestMethod.POST)
    int updateUser(@RequestBody XcxUser xcxUser);

}
